import request from '@/utils/request'

// 查询一键报修列表
export function listOneKeyRepair(query) {
  return request({
    url: '/app/oneKeyRepair/list',
    method: 'get',
    params: query
  })
}

// 查询一键报修详细
export function getOneKeyRepair(id) {
  return request({
    url: '/app/oneKeyRepair/' + id,
    method: 'get'
  })
}

// 新增一键报修
export function addOneKeyRepair(data) {
  return request({
    url: '/app/oneKeyRepair',
    method: 'post',
    data: data
  })
}

// 修改一键报修
export function updateOneKeyRepair(data) {
  return request({
    url: '/app/oneKeyRepair',
    method: 'put',
    data: data
  })
}

// 删除一键报修
export function delOneKeyRepair(id) {
  return request({
    url: '/app/oneKeyRepair/' + id,
    method: 'delete'
  })
}
